package ctype

type LogoutType int8

const (
	ConventionalLogout LogoutType = 1 //常规注销
	CrowdedLogout      LogoutType = 2 //挤下线注销
	BlcakLogout        LogoutType = 3 //黑名单注销
	UserHandleLogout   LogoutType = 4 //用户手动注销
)

func (l LogoutType) String() string {
	switch l {
	case ConventionalLogout:
		return "当前token已注销"
	case CrowdedLogout:
		return "当前用户在其他设备上登录, 当前token已失效"
	case BlcakLogout:
		return "当前token在黑名单中, 不可登录"
	case UserHandleLogout:
		return "用户手动注销, 当前token已失效"
	default:
		return "未知登出类型"
	}
}
